<template>
  <div class="not-found">
    <div class="not-found-content">
      <h1>404</h1>
      <h2>页面不存在</h2>
      <p>抱歉，您访问的页面不存在或已被删除。</p>
      <el-button type="primary" @click="$router.push('/')">
        返回首页
      </el-button>
    </div>
  </div>
</template>

<script setup lang="ts">
// 404页面组件
</script>

<style scoped>
.not-found {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background-color: #f5f5f5;
}

.not-found-content {
  text-align: center;
  padding: 40px;
}

.not-found-content h1 {
  font-size: 120px; /* 可保留大视觉，如需统一可改为 calc(var(--font-size-20) * 6) */
  color: #409EFF;
  margin: 0;
  font-weight: bold;
}

.not-found-content h2 {
  font-size: var(--font-size-18);
  color: #333;
  margin: 20px 0;
}

.not-found-content p {
  font-size: var(--font-body);
  color: #666;
  margin-bottom: 30px;
}
</style> 